package uabc.arduino.monitores;



public class MonitorGenerator extends Monitor {
	private double lastValue;
	private boolean running;

	private MonitorGenerator() {
		lastValue = 100D;
		running = true;
	}

	public void run() {
		while (running) {
			try {
				double d = 0.9D + 0.2D * Math.random();
				lastValue = lastValue * d;

				Thread.sleep(300);
			} catch (InterruptedException e) {

			}
		}
	}

	public void terminate() {
		running = false;
	}

	@Override
	public void ejecutarComando(String comando) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean testConnection() {
		// TODO Auto-generated method stub
		return false;
	}
}
